//
//  OldTableViewCell.m
//  Item A House
//
//  Created by dllo on 15/5/25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "OldTableViewCell.h"

@implementation OldTableViewCell
- (void)dealloc
{
    [_housepic release];
    [_addrinfo release];
    [_smallareaid release];
    [_areainfo release];
    [_v_houselayout release];
    [_v_housesize release];
    [_v_price release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView
{
    //展示图
    self.housepic = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, [UIScreen mainScreen].bounds.size.width / 2 - 40, 80)];
    [self.contentView addSubview:self.housepic];
    [self.housepic release];
    
    //小区名
    self.addrinfo = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 10, [UIScreen mainScreen].bounds.size.width / 2 - 10, 20)];
    [self.addrinfo setFont:[UIFont fontWithName:@"Helvetica-Bold" size:16]];
    [self.contentView addSubview:self.addrinfo];
    [self.addrinfo release];
    
    //地址
    self.areainfo = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 35, [UIScreen mainScreen].bounds.size.width / 2 - 130, 10)];
    self.areainfo.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.areainfo.font = [UIFont systemFontOfSize:13];;
    [self.contentView addSubview:self.areainfo];
    [self.areainfo release];
    
    //次级地址
    self.smallareaid = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 40, 35, [UIScreen mainScreen].bounds.size.width / 2 - 70, 10)];
    self.smallareaid.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.smallareaid.font = [UIFont systemFontOfSize:13];;
    [self.contentView addSubview:self.smallareaid];
    [self.smallareaid release];
    
    //户型
    self.v_houselayout = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 57, [UIScreen mainScreen].bounds.size.width / 2 - 100, 10)];
    self.v_houselayout.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.v_houselayout.font = [UIFont systemFontOfSize:13];;
    [self.contentView addSubview:self.v_houselayout];
    [self.v_houselayout release];
    
    //产权面积
    self.v_housesize = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 + 70, 57, [UIScreen mainScreen].bounds.size.width / 2 - 100, 10)];
    self.v_housesize.textColor = [UIColor colorWithWhite:0.3 alpha:0.8];
    self.v_housesize.font = [UIFont systemFontOfSize:13];;
    [self.contentView addSubview:self.v_housesize];
    [self.v_housesize release];
    
    //标价
    self.v_price = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 2 - 20, 80, [UIScreen mainScreen].bounds.size.width / 2 - 10, 10)];
    
    self.v_price.textColor = [UIColor redColor];
    [self.contentView addSubview:self.v_price];
    [self.v_price release];
}















- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
